public class test {

//    public static int fun(int x) {
//        if (x <= 0) {
//            return x;
//        }
//        //fun(x / 1000);
//        System.out.print(x % 10 + " ");
//        return fun(x / 10);
//
//    }

    //    public static int fun(int x) {
//        if (x <= 0) {
//            return x;
//        }
//        //fun(x / 1000);
//        return x%10+ fun(x / 10);
//    }
//
//    public static void main(String[] args) {
//        int a = 1234;
//        int tmp = fun(a);
//        System.out.println(tmp);
//    }
   /* public static int fun(int x) {
        if (x<2){
            return x;
        }
        return fun(x-1)+fun(x-2);
    }*/
    /*public static int fun1(int x) {
        if (x <= 0) {
            return 1;
        }
        return x * fun1(x - 1);
    }

    public static int fun2(int x) {
        if (x < 1) {
            return x;
        }
        return fun1(x) + fun2(x - 1);
    }

    public static void main(String[] args) {
        int tmp = fun2(4);
        System.out.println(tmp);
    }*/

    /*public static int fun(int x, int y) {
        return x > y ? x : y;
    }

    public static int fun(int x, int y, int z) {
        int tmp = x;
        if (x < y) {
            tmp = x;
        } else if (x < z) {
            tmp = x;
        } else if (y < z) {
            tmp = y;
        } else {
            tmp = z;
        }
        return tmp;
    }


    public static void main(String[] args) {
        int x = 10;
        int y = 20;
        int z = 30;
        int tmp = fun(x, y);
        int qq = fun(x, y, z);
        System.out.println(tmp);
        System.out.println(qq);
    }*/

    /*public static void fun(int x) {
        if (x == 0) {
            return;
        } else {
            fun(x / 10);
            System.out.print(x % 10 + " ");
        }
    }

    public static void main(String[] args) {
        int number = 1234;
        fun(number);
    }*/


    /* public static void main(String[] args) {
         Dog dogh = new Dog();
         dogh.name="小黑";
         dogh.color="黑色";
         dogh.barks();
         dogh.wag();

         Dog dog1 = new Dog();
         dog1.name = "嘿休休";
         dog1.color = "白色";
         dog1.barks();;
         dog1.wag();
     }*/
    public static void main(String[] args) {
        // 构造三个日期类型的对象 d1 d2 d3
        Date d1 = new Date();
        Date d2 = new Date();
        Date d3 = new Date();
// 对d1，d2，d3的日期设置
        d1.setDay(2020, 9, 15);
        d2.setDay(2020, 9, 16);
        d3.setDay(2020, 9, 17);
// 打印日期中的内容
        d1.printDate();
        d2.printDate();
        d3.printDate();
    }

}

